package sample;

import sample.utils.MysqlUtil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Test {
    public static void main(String[] args) {
        Connection connectionOne = MysqlUtil.getConnectionOne("lefan", "admin", "123456");
        try {
            PreparedStatement preparedStatement = connectionOne.prepareStatement("show table status ");


            ResultSet resultSet = preparedStatement.executeQuery();
            while (resultSet.next()) {

                String name = resultSet.getString("Name");
                System.out.println(name);
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }

    }
}
